package com.beyondsoft.sabg.edu.model.enums;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public enum FormSettingEnum {
    Condition("条件构造器","conditions"),
    TextareaSetting("自定义文本框设置","textarea"),
    ApprovalComments("审批意见字数设置","approvalComments"),
    DifficultyType("困难类型","difficultType"),

    ApproveFLow("审批流程自定义","approveFlow"),

    WHITELIST("白名单","whiteList"),
    BLACKLIST("黑名单","blackList")
    ;

    private String cName;
    private String eName;

    FormSettingEnum(String cName, String eName) {
        this.cName = cName;
        this.eName = eName;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }
   public static List<String> getENames(){
        return Arrays.stream(FormSettingEnum.values()).map(formSettingEnum -> formSettingEnum.eName).collect(Collectors.toList());
    }
}
